The Dreamweaver JavaScript API > Enablers > dreamweaver.canSaveDocument()

 

dreamweaver.canSaveDocument()

Availability

Dreamweaver 3.0

Description

Checks whether Dreamweaver can perform a Save operation on the specified document.

Arguments

documentObject

documentObject is the object at the root of a document's DOM tree (the value returned by dreamweaver.getDocumentDOM()).

Returns

A Boolean value indicating whether the document has any unsaved changes.